package com.it.base.core.system.dict.model.from;

import java.io.Serializable;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class SysDictDataSaveFormDTO implements Serializable {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(name = "sort", value = "排序", dataType = "String", required = true)
	@Min(message = "排序", value = 0)
	private Long sort;

	/**
	 * 标签
	 */
	@ApiModelProperty(name = "label", value = "标签", dataType = "String", required = true)
	@NotBlank(message = "名称标签")
	private String label;

	/**
	 * 字典键值
	 */
	@ApiModelProperty(name = "value", value = "value", dataType = "String", required = true)
	@NotBlank(message = "名称标签")
	private String value;

	/**
	 * 类型
	 */
	@ApiModelProperty(name = "type", value = "类型", dataType = "String", required = true)
	@NotBlank(message = "类型必填")
	private String type;

	/** 表格字典样式 */
	@ApiModelProperty(name = "listClass", value = "样式", dataType = "String")
	private String listClass;

	/**
	 * 备注
	 */
	@ApiModelProperty(name = "remark", value = "备注", dataType = "String")
	private String remark;

	/**
	 * 状态
	 */
	@ApiModelProperty(name = "status", value = "状态", dataType = "String", required = true)
	@Min(message = "状态值只能为-1或0", value = -1)
	@Max(message = "状态值只能为-1或0", value = 0)
	private Integer status;
}
